package com.aabte.mybatis.mapper.bean;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "table_user")
public class User {

    @Id
    private Integer userId;
    private String userName;

    /**
     * 复杂类型需要自己实现TypeHandler
     */
    // @ColumnType(typeHandler = AddressTypeHandler.class)
    @Column
    private Address address;

    private SeasonEnum season;

}
